﻿
namespace Hibiku.Twitter
{
    public class Place
    {
        public string Id
        {
            get;
            private set;
        }

        public string Name
        {
            get;
            private set;
        }

        public string FullName
        {
            get;
            private set;
        }

        public string PlaceType
        {
            get;
            private set;
        }

        public string Url
        {
            get;
            private set;
        }

        public string Country
        {
            get;
            private set;
        }

        public Place(string id, string name, string fullName, 
            string placeType, string url, string country)
        {
            Id = id;
            Name = name;
            FullName = fullName;
            PlaceType = placeType;
            Url = url;
            Country = country;
        }

        public override string ToString()
        {
            return FullName;
        }

        public override bool Equals(object obj)
        {
            var other = obj as Place;

            return string.Equals(Id, other.Id);
        }

        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }
    }
}